package com.yiquan.comment.feign;


import com.yiquan.comment.pojo.UserActivity;
import entity.Result;
import entity.StatusCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("yiquan-user")
public interface UserClient {

    /**
     * 根据用户id查找用户
     *
     * @param userId
     * @return
     */
    @RequestMapping(value = "/user/getUserByUserId", method = RequestMethod.GET)
    public Result findByUserId(@RequestParam Long userId);

    @PostMapping("/user/addUserActivity")
    public Result addUserActivity(@RequestBody UserActivity userActivity);

}
